import request from '@/utils/request'

// 查询评议员管理列表
export function listSenator(query) {
  return request({
    url: '/bank/senator/list',
    method: 'get',
    params: query
  })
}

// 查询评议员管理详细
export function getSenator(reviewerId) {
  return request({
    url: '/bank/senator/' + reviewerId,
    method: 'get'
  })
}

// 新增评议员管理
export function addSenator(data) {
  return request({
    url: '/bank/senator',
    method: 'post',
    data: data
  })
}

// 修改评议员管理
export function updateSenator(data) {
  return request({
    url: '/bank/senator',
    method: 'put',
    data: data
  })
}

// 删除评议员管理
export function delSenator(reviewerId) {
  return request({
    url: '/bank/senator/' + reviewerId,
    method: 'delete'
  })
}
